* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    text-decoration: none;
}

.box {
    main {
        /*min-width: 769px;*/
        max-width: 1310px;
        margin: 30px auto;

        button {
            width: 174px;
            height: 40px;
            background-color: #0267B5;
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 16px;
            margin: 30px auto 0;
            box-sizing: border-box;
        }


        .casesList {
            width: 100%;
            margin: 30px auto;
            /*margin: 0 auto;*/
            /*display: flex;*/
            /*flex-wrap: wrap;*/
            /*justify-content: space-between;*/
            display: grid;
            padding: 5px;
            box-sizing: border-box;
            /*划分列,3列1：1：1*/
            /*grid-template-columns: repeat(3, 33.33%);*/
            @media screen and (min-width: 769px) {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px; /* 网格项之间的间隙 */
            }
            @media screen and (max-width: 768px) {
                grid-template-columns: repeat(2, 1fr);
                gap: 5px; /* 网格项之间的间隙 */
            }

            .casesItem {
                /*flex: 1 1 auto;*/
                /*overflow: hidden;*/
                /*width: 33.33333%;*/
                box-sizing: border-box;
                /* 自适应宽高比例 */
                width: 100%;
                position: relative; /* 确保内部绝对定位的元素可以相对于此元素定位 */
                /* 高度根据宽度自动调整 */
                height: 0;
                /* 3:2 比例，根据需要调整 */
                padding: 66.66% 20px 20px;
                transition: all 0.5s ease;

                .img {
                    /*width: 415px;*/
                    /*height: 277px;*/
                    /*!*width: 25.9375rem;*!*/
                    /*!*height: 17.3125rem;*!*/
                    /*!*width: 21.8vw;*!*/
                    /*!*height: 29.3vh;*!*/
                    /*background-size: 100% 100%;*/
                    /*background-repeat: no-repeat;*/

                    position: absolute; /* 绝对定位，以便于填满父容器 */
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background-size: 100% 100%; /* 确保图像按比例填满 */
                    background-repeat: no-repeat;
                    background-position: center; /* 背景图片居中 */
                    transition: all 0.5s ease; /* 过渡效果 */
                    overflow: hidden; /* 防止背景图片放大时超出盒子范围 */
                }

                .tit {
                    /*width: 415px;*/
                    /*height: 45px;*/
                    /*!*width: 21.8vw;*!*/
                    /*!*height: 4.76vh;*!*/
                    /*line-height: 45px;*/
                    /*text-align: center;*/
                    /*box-sizing: border-box;*/
                    /*border: 1px solid #ccc;*/

                    position: absolute; /* 绝对定位，以便于覆盖在图片上 */
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 45px;
                    line-height: 45px;
                    text-align: center;
                    box-sizing: border-box;
                    border: 1px solid #ccc;
                    background-color: #fff; /* 默认背景色 */
                }
            }

            .casesItem:hover {
                transition: all 0.5s ease;

                .img {
                    background-size: 130% 130%;
                    transition: all 0.5s ease;
                }

                .tit {
                    color: #fff;
                    background-color: #0F70D3;
                    transition: all 0.5s ease;
                }
            }
        }

        .pager-box {
            .btn-box {
                display: flex;
                flex-wrap: nowrap;
                justify-content: center;

                .btn {
                    display: block;
                    text-align: center;
                    line-height: 30px;
                    width: 30px;
                    height: 30px;
                    color: #ccc;
                    margin: 10px 5px;
                    border: 1px solid #ccc;
                    cursor: pointer;
                }

                .btn.on {
                    color: #fff;
                    background-color: #0267B5;
                }

            }

            .count {
                font-size: 16px;
                color: black;

                span {
                    color: black;
                }
            }
        }
    }
}